package com.szp.pgyer

import okhttp3.OkHttpClient
import java.util.concurrent.TimeUnit

object OkHttpUtil {
    fun getOkHttpClient(): OkHttpClient {
        val client = OkHttpClient.Builder()
        client.readTimeout(30, TimeUnit.SECONDS)
        client.connectTimeout(10, TimeUnit.SECONDS)
        client.writeTimeout(30, TimeUnit.SECONDS)
        val build = client.build()
        return build
    }
}